package com.cratos.xxgram.platf.complaint;

import javax.persistence.*;
import org.redkale.convert.json.*;
import org.redkale.util.Comment;

/**
 *
 * @author SquRab
 */
@Table(comment = "举报信息记录")
public class ComplaintRecord implements java.io.Serializable {

    @Id
    @Column(comment = "举报id")
    private int complaintid;

    @Column(comment = "举报的模块  10 群 20 用户")
    private short complaintmodule;

    @Column(length = 255, comment = "举报内容")
    private String complaintcontent = "";

    @Column(comment = "处理结果 10 同意举报  20 举报不成功")
    private short dealstatus;

    @Column(comment = "举报用户ID")
    private int complaintuserid;

    @Column(comment = "处理用户ID")
    private int dealuserid;

    @Column(comment = "举报模块主键ID 如果是群就是groupId")
    private int targetid;

    @Column(comment = "举报时间", updatable = false)
    private long createtime;

    @Column(comment = "举报圖片 分號 分割 xxx.jpeg;xxs.jpeg;")
    private String pictures;
    
    @Column(comment = "消息id 分号 分割 msgid001;msgid001;")
    private String messageids;
    
    @Column(comment = "举报类型")
    private short complainttype;
    
    public String getMessageids() {
		return messageids;
	}

	public void setMessageids(String messageids) {
		this.messageids = messageids;
	}

	public String getPictures() {
		return pictures;
	}

	public void setPictures(String pictures) {
		this.pictures = pictures;
	}
	
	public short getComplainttype() {
		return complainttype;
	}

	public void setComplainttype(short complainttype) {
		this.complainttype = complainttype;
	}

	@Comment("群管理模块")
    @Transient
    public static final short GROUP_MODULE = 10;
    
    @Comment("用户管理模块")
    @Transient
    public static final short USERINFO_MODULE = 20;
    
    @Comment("未处理状态")
    public static final short UN_DO_STATUS = 10;
    
    @Transient
    private String complaintusername;//举报人昵称
    
    @Transient
    private String targetname;//被举报昵称
    @Transient
    private int times;//被举报次数
    
    public long getCreatetime() {
		return createtime;
	}

	public void setCreatetime(long createtime) {
		this.createtime = createtime;
	}

	public void setComplaintid(int complaintid) {
        this.complaintid = complaintid;
    }

    public int getComplaintid() {
        return this.complaintid;
    }

    public void setComplaintmodule(short complaintmodule) {
        this.complaintmodule = complaintmodule;
    }

    public short getComplaintmodule() {
        return this.complaintmodule;
    }

    public void setComplaintcontent(String complaintcontent) {
        this.complaintcontent = complaintcontent;
    }

    public String getComplaintcontent() {
        return this.complaintcontent;
    }

    public void setDealstatus(short dealstatus) {
        this.dealstatus = dealstatus;
    }

    public short getDealstatus() {
        return this.dealstatus;
    }

    public void setComplaintuserid(int complaintuserid) {
        this.complaintuserid = complaintuserid;
    }

    public int getComplaintuserid() {
        return this.complaintuserid;
    }

    public void setDealuserid(int dealuserid) {
        this.dealuserid = dealuserid;
    }

    public int getDealuserid() {
        return this.dealuserid;
    }

    public void setTargetid(int targetid) {
        this.targetid = targetid;
    }

    public int getTargetid() {
        return this.targetid;
    }
    
    public void setComplaintusername(String complaintusername) {
        this.complaintusername = complaintusername;
    }

    public String getComplaintusername() {
        return this.complaintusername;
    }
    
    public void setTargetname(String targetname) {
        this.targetname = targetname;
    }

    public String getTargetname() {
        return this.targetname;
    }
    
    public void setTimes(int times) {
        this.times = times;
    }

    public int getTimes() {
        return this.times;
    }
    
    @Override
    public String toString() {
        return JsonConvert.root().convertTo(this);
    }
}
